xss_security ( $_GET ["id"] ) ) ; if ( isset ( $id_topic ) && is_numeric ( $id_topic ) && $id_topic != 0 && $id_topic > 0 ){ $inner = array ( "category" , "admins" ) ; $join = array ( "yespress_topic.cat_topic=yespress_category.id_cat" , "yespress_topic.author_topic=yespress_admins.id_admin" ) ; $select_topic = $on_mysqli->select_db_inner ( "topic" , $inner , $join , "where id_topic = ".$id_topic."" , " " , " " ) ; if ( mysqli_num_rows ( $select_topic ) != false ){ $topic_array = mysqli_fetch_assoc ( $select_topic ) ; print ( "
".$topic_array ["title_topic"]."
".code_html ( $topic_array ["cont_topic"] )."
عدد المشاهدات : ".$topic_array ["view_topic"]."
" ) ; $plus_view = ( $topic_array ["view_topic"] + 1 ) ; if ( !isset ( $_COOKIE ["view-topic_$id_topic"] ) && $_COOKIE ["view-topic_$id_topic"] != $id_topic ){ setcookie ( "view-topic_$id_topic" , $id_topic , time () + 300 ) ; $values = array ( "view_topic"=>$plus_view ) ; $on_mysqli->update_db ( "topic" , $values , "where id_topic = $id_topic" ) ; } $on_mysqli->query_close () ; } else { $on_mysqli->query_close () ; print ( "
الـصـفـحـة خـطـأ , سـيـتـم تـحـويـلـك إلـى الـصـفـحـة الـرئـسـيـة .
" ) ; } } else { print ( "
الـصـفـحـة خـطـأ , سـيـتـم تـحـويـلـك إلـى الـصـفـحـة الـرئـسـيـة .
" ) ; } ?>